﻿using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp;
using Xms.Abp.AspNetCore.Mvc;

namespace MemberManagement;

[RemoteService(Name = MemberManagementRemoteServiceConsts.RemoteServiceName)]
[Area(MemberManagementRemoteServiceConsts.ModuleName)]
[Route("api/management/members")]
public class MemberController : XmsCrudController<IMemberAppService, MemberResult, Guid, MembersPagedParameter, MemberCreateParameter, MemberUpdateParameter>, IMemberAppService
{
    //[HttpDelete]
    //[Route("{id}/features/delete")]
    //public async Task DeleteAllFeaturesAsync(Guid id)
    //    => await CurrentService.DeleteAllFeaturesAsync(id);

    //[HttpGet]
    //[Route("{id}/features")]
    //public async Task<IEnumerable<NameValue>> GetFeaturesAsync(Guid id)
    //    => await CurrentService.GetFeaturesAsync(id);

    //[HttpPost]
    //[Route("{id}/features/update")]
    //public async Task UpdateFeaturesAsync(Guid id, IEnumerable<NameValue> nameValues)
    //    => await CurrentService.UpdateFeaturesAsync(id, nameValues);
}
